<%@ page language="java" pageEncoding="UTF-8"%>

<table width="400">
	<tr>
		<td>
		<span id="postcheckListSpan">
		<%@include file="postcheck_list.jsp"%>
		</span>
		</td>
	</tr>
</table>

<script type="text/javascript">
function chooseMappingPostcheck(id) {
	$.dialog.get('postcheckListDialog').close();
	openWaitingDialog('waitingDialog');
	$.ajax({
		type:'post',
		url:'choose_postcheck_process.jsp',
		data:{
			id: id
		},
		success:function(data,state,xmlhttp){
			var obj = null;
			try {
				obj = eval('(' + data + ')');
			} catch (e) {
			}
			if (typeof(obj.isSuccess) != 'undefined') {
				if (obj.isSuccess == 'true') {
					loadPageSection('<%=request.getContextPath()%>/register.jsp', 'mainContentDiv');
				} else {
					closeWaitingDialog('waitingDialog');
					$.dialog.alert(obj.error);
				}
			}
		}
	});
}
</script>